package com.bolingcavalry.crm.user.mapper;/*
 * @Auther:Sadie
 * @Date:2025/5/22
 * @Description:
 * @VERSON:1.8
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.user.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionsMapper extends BaseMapper<Permission> {

    void insertPR(String permissionName, String roleName);

    List<String> getpermissionsByRoleId(Long roleId);

    List<String> getPermissionsByRoleIds(List<Long> roleIds);
}
